Skip to content

chore: require Dart SDK 3.8.0 across all packages#250

Merged
spydon merged 2 commits into
corbado:mainfrom
spydon:chore/bump-passkeys-web-sdk-3.8.0
Jul 2, 2026
Merged

chore: require Dart SDK 3.8.0 across all packages#250
spydon merged 2 commits into
corbado:mainfrom
spydon:chore/bump-passkeys-web-sdk-3.8.0

Conversation

@spydon

@spydon spydon commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

What

  • Raise the minimum Dart SDK from 3.0.0/3.4.0 to >=3.8.0 <4.0.0 in every package (and align the Flutter constraint to >=3.32.0, the release that ships Dart 3.8.0).
  • Bump the Flutter version used by the deploy workflows from 3.27.4 to 3.32.0.

Why

The json_serializable / json_annotation versions these packages use require Dart 3.8.0. With the previous >=3.0.0 floors, the declared SDK range did not match what the code generation toolchain actually needs.

json constraints are intentionally left unchanged

json_serializable (^6.7.0 / ^6.11.1, dev) and json_annotation (^4.8.1, runtime) are not bumped. The newest releases (json_serializable 6.14.0, json_annotation 4.12.0) require Dart 3.9.0. By keeping the existing caret constraints and setting the floor to 3.8.0, pub's SDK-aware resolution gives consumers on Dart 3.8.0 the highest 3.8-compatible json versions (≈ json_serializable 6.12.x, json_annotation 4.10.x), so consumers are held at 3.8.0 rather than being pushed to 3.9.0. Consumers on 3.9.0+ still get the newest versions.

Consumer impact

Because passkeys depends on all of its platform implementations (including passkeys_web) as regular dependencies, the highest SDK floor in the tree applies to every consumer of passkeys on all platforms. This change therefore raises the effective minimum to Dart 3.8.0 for all consumers, which is intentional.

Note

The ci.yml workflow's Flutter version is bumped on the #249 branch, since that file is introduced there and does not yet exist on main.

Versions and CHANGELOGs are left to the Melos release tooling.

@spydon spydon force-pushed the chore/bump-passkeys-web-sdk-3.8.0 branch from 222895c to a4a22b6 Compare June 29, 2026 07:34
@spydon spydon changed the title chore(passkeys_web): require Dart SDK 3.8.0 and bump json_serializable to 6.11.2 chore(passkeys_web): require Dart SDK 3.8.0 Jun 29, 2026
The json_serializable / json_annotation versions used need Dart 3.8.0.
Constraints are left as-is so consumers on Dart 3.8.0 still resolve the
3.8-compatible json versions rather than being forced to 3.9.0.
@spydon spydon force-pushed the chore/bump-passkeys-web-sdk-3.8.0 branch from a4a22b6 to 3a17e3e Compare June 29, 2026 08:06
@spydon spydon changed the title chore(passkeys_web): require Dart SDK 3.8.0 chore: require Dart SDK 3.8.0 across all packages Jun 29, 2026
@spydon spydon merged commit e596ae7 into corbado:main Jul 2, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants